package com.topone.permission.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.topone.permission.entity.Permission;


//@Mapper
public interface PermissionMapper {
	
	//批量保存权限
	public void batchsave(List<Permission> list);
	
	//获取所有非特权权限
	public List<Permission> getPermission();
	
	//通过roleId获取权限
	public List<Permission> findByRoleId(Long roleId);
	
	//通过userId获取所有权限
	public List<Permission> getPermissionByUserId(Long userId);

	public List<Permission> getAll();
	
}
